﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// Reviewed

#pragma once

#include "Coordinate3d.h"
#include "GcmpGeometryInterface.h"

namespace gcmp
{
    class IBody;
    class Coordinate3d;

    /// \brief HLRAcc封装类，用于Acc加速
    class IHLRAcc
    {
    public:
        virtual ~IHLRAcc() {};

    public:
        /// \brief  体的可见性查找。输入体集合，查找可见体ID
        /// \param[in]         brepBodies    输入体数组
        /// \param[in]         coord         视角坐标系
        /// \param[in,out]     visBodyIds    可见体IDs
        /// \param[in,out]     invisBodyIds  不可见体IDs
        /// \return    成功返回true，失败返回false
        virtual bool GetVisBodies(const std::vector<const IBody*>& brepBodies, const Coordinate3d& coord, std::vector<int>& visBodyIds, std::vector<int>& invisBodyIds) const = 0;

    };
}
